package org.yang.keywords.enums;

/**
 * @Description: TODO
 * @Author: YangTing
 * @Date: 2024-07-03 21:37
 */

public class SeasonTest2 {
    public static void main(String[] args) {
        Season2[] values = Season2.values();
        for (Season2 value : values) {
            value.show();
        }
    }
}

interface Info2{
    void show();
}

enum Season2 implements Info2{
    SPRING("春天","春暖花开"){
        public void show(){
            System.out.println("春天在哪里");
        }
    },
    SUMMER("夏天","夏日炎炎"){
        public void show(){
            System.out.println("夏天在哪里");
        }
    },
    AUTUMN("秋天","秋高气爽"){
        public void show(){
            System.out.println("秋意浓");
        }
    },
    WINTER("冬天","冬日可爱"){
        public void show(){
            System.out.println("大约在冬季");
        }
    };
    private final String seasonName;
    private final String seasonDesc;
    Season2(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }
    public String getSeasonName() {
        return seasonName;
    }
    public String getSeasonDesc() {
        return seasonDesc;
    }
//    @Override
//    public void show() {
//        System.out.println("Season.show");
//    }
}